using System.Collections.Generic;
using Tools.Common.ServiceLocator;

namespace Web.App.Infrastructure.NHibernate.Fetching
{
    public class FetchingStrategyFactory : IFetchingStrategyFactory
    {
        public IEnumerable<IFetchingStrategy<T>> CreateFetchingStrategiesFor<T>()
        {
            return ServiceLocator.Current.ResolveAll<IFetchingStrategy<T>>(); 
        }
    }
}